<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ page import="com.msmall.base.util.ConstantDB" language="java"%>

<%@ page import="com.msmall.community.space.util.SpaceConstants" language="java"%>
<c:set var="UNVISIBLE" value="<%=ConstantDB.UNVISIBLE%>"></c:set>
<c:set var="VISIBLE" value="<%=ConstantDB.VISIBLE%>"></c:set>
<c:set var="UNLOCK_STATUS" value="<%=ConstantDB.UNLOCK_STATUS%>"></c:set>
<c:set var="LOCK_STATUS" value="<%=ConstantDB.LOCK_STATUS%>"></c:set>
<c:set var="SPACE_WIDGET_PART_ALBUM" value="<%=SpaceConstants.SPACE_WIDGET_PART_ALBUM%>"></c:set>

<div id="alumLeftContent" class="spalistw730">
	<div class="spaw730nav">
		<p class="sHB00 fl" onclick="spaceIndexNav(<c:out value='${SPACE_WIDGET_PART_ALBUM}'/>)">
			我的相册
		</p>
		<p class="fr" style="margin-top:-5px;margin-right:400px">
			<a style="float:left;" class="but82" id="a_space_album_updload" href="javascript:spaceAlbumUpload()">上传照片</a>
			<a style="float:left;margin-left:15px;" class="but82" id="a_space_album" href="javascript:createAlbum()">创建相册</a>
		</p>
	</div>
	<div class="spalistphoto">
		<c:if test="${fn:length(albumList) > 0}">
			<c:forEach var="album" items="${albumList}"  varStatus="status">
				<dl id="space_album_${album.albumid}" class="spalistphotodl">
					<dt>
						<a target="_self" href="javascript:spaceAlbumList(${album.albumid})">
							<img style="width:120px;height:120px;" src="${ctx}/${album.coverPathOwner}">
						</a>
					</dt>
					<dd>
						<a class="lH00" href="javascript:spaceAlbumList(${album.albumid})">
							<c:out value="${album.title}"></c:out>
						</a>
						<br>
						<a id="space_album_remove_${album.albumid}" class="lc00" href="javascript:spaceAlbumRemove(${album.albumid}, ${SPACE_WIDGET_PART_ALBUM})">
							删除
						</a>
						<a href="javascript:spaceAlbumUpdate(${album.albumid})">编辑</a>
						<c:if test="${LOCK_STATUS ==album.lockStatus}">
							<a class="lc00" href="#">已设置密码</a>
						</c:if>
					</dd>
				</dl>
			</c:forEach>
		</c:if>
		<c:if test="${fn:length(albumList) <= 0}">
			<dl class="spalistleav">
				<dt>
					暂无相册
				</dt>
				<dd>
				</dd>
			</dl>
		</c:if>
	</div>
	<div class="pagediv martop10 tc clear">
	</div>
</div>
<tiles:insertDefinition name="html.space.content.right.owner">
	<tiles:putAttribute name="userInfo" value="${userInfo}"></tiles:putAttribute>
</tiles:insertDefinition>
<script>

</script>